package com.cnspt.repository;

import com.cnspt.models.Blog;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface BlogRepository extends MongoRepository<Blog, Integer> {
    public List<Blog> getBlogByTitle(String title);
    public Blog getBlogById(int id);
}
